#ifndef SHA1_H_
#define SHA1_H_

#include "decryptFile.h"

/**
 * Calculates the SHA1 value, with the last 32 bits truncated,
 *  of the concatenation of name and key.
 *
 * @param[in]		name	The name of the user.
 * @param[in]		count	The key of the user.
 * @param[out]		sha1	The SHA1 value, with the last 32 bits truncated.							
 *
 */
void calculateSha1(char * name, char * key, unsigned char sha1[AESKEYLENGTH]);

#endif /*SHA1_H_*/
